package com.hp.model.chain;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class OrderRequest {

    @NotBlank(message = "用户id不能为空")
    private Long userId;

    @NotNull(message = "商品id不能为空")
    private Long itemId;

    @NotNull(message = "数量不能为空")
    private Integer quantity;
}